<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>

<%@page import="eg.com.itiga.ui.actions.ItianSearchResult"%>
<%@page import="java.util.List"%>
<%@page import="eg.com.itiga.domain.Itian"%>
<html:html>
<head>
	<title></title>
</head>
<body>
    <h3>Ehna hena ya wad :D</h3>
<table border="2" background="0xffaa12">
	<tr>
		<th>User ID</th>
		<th>Department ID</th>
		<th>Brach ID</th>
		<th>Itian Name</th>
		<th>E-mail</th>
		<th>Phone</th>
		<th>Intake</th>
		<th>YoE</th>
		<th>Itian ID</th>
	</tr>
	<%
		List<Itian> list = ItianSearchResult.getItians();
			if (list == null || (list.size() == 0)) {
				System.out
						.println("no data found bel criteria de  yad :@ :(");
				out.println("no data found bel criteria de  yad :@ :(");
			} else {
				System.out.println("the length is " + list.size());
				for (int i = 0; i < list.size(); i++) {
					out.println("<tr>");
					out.println("<td>" + list.get(i).getUser().getUserId()
							+ "</td>");
					out.println("<td>"
							+ list.get(i).getDepartment().getDId() + " , "
							+ list.get(i).getDepartment().getDName()
							+ "</td>");
					out.println("<td>" + list.get(i).getBranch().getBId()
							+ " , " + list.get(i).getBranch().getName()
							+ "</td>");
					out.println("<td>" + list.get(i).getIName() + "</td>");
					out.println("<td>" + list.get(i).getIEmail() + "</td>");
					out.println("<td>" + list.get(i).getIPhone() + "</td>");
					out
							.println("<td>" + list.get(i).getIIntake()
									+ "</td>");
					out.println("<td>" + list.get(i).getIYearsExp()
							+ "</td>");
					out.println("<td>" + list.get(i).getIId() + "</td>");
					out.println("</tr>");
				}
			}
	%>
</table>
<br>

<br>
</body>
</html:html>
